<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>短信设置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  {include file="public/css"/}
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-card layui-col-md12">
				<!-- <div class="layui-card-header">短信设置</div> -->
				<div class="layui-tab layui-tab-brief">
					<ul class="layui-tab-title">
						<li class="layui-this" onclick="location.href='{:url('set')}'">短信设置</li>
						<li onclick="location.href='{:url('sendlog')}'">发送记录</li>
					</ul>
				</div>
				<div class="layui-card-body" pad15>
					
					<div class="layui-form" lay-filter="">
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">短信状态</label>
							<div class="layui-input-inline" style="width:300px">
								<input type="radio" name="info[status]" value="1" title="开启" {if $info['status']==1}checked{/if}/>
								<input type="radio" name="info[status]" value="0" title="关闭" {if $info['status']==0}checked{/if}/>
							</div>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px;"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">短信接口</label>
							<div class="layui-input-inline" style="width:300px">
								<select name="info[smstype]" lay-filter="smstypeset">
									<option value="1" {if $info['smstype']==1}selected{/if}>阿里云</option>
									<option value="2" {if $info['smstype']==2}selected{/if}>腾讯云</option>
									<!-- <option value="3">聚合短信</option> -->
								</select>
							</div>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px;"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px" id="keyid">{if $info['smstype']==1}AccessKey ID{else}SecretId{/if}</label>
							<div class="layui-input-inline" style="width:300px">
								<input type="text" name="info[accesskey]" value="{$info['accesskey']}" class="layui-input"/>
								{if $info['accesskey']}<div style="position: absolute;left: 0;top: 0;right: 0;bottom: 0; background: #fff;padding: .35rem .7rem;border: 1px solid rgba(0, 0, 0, .15);border-radius: .15rem;color: #636c72;" onclick="$(this).hide()">已隐藏内容，点击查看或编辑</div>{/if}
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px" id="secretid">{if $info['smstype']==1}AccessKey Secret{else}SecretKey{/if}</label>
							<div class="layui-input-inline" style="width:300px">
								<input type="text" name="info[accesssecret]" value="{$info['accesssecret']}" class="layui-input"/>
								{if $info['accesssecret']}<div style="position: absolute;left: 0;top: 0;right: 0;bottom: 0; background: #fff;padding: .35rem .7rem;border: 1px solid rgba(0, 0, 0, .15);border-radius: .15rem;color: #636c72;" onclick="$(this).hide()">已隐藏内容，点击查看或编辑</div>{/if}
							</div>
						</div>
						<div class="layui-form-item" id="sdkappiddiv" style="{if $info['smstype']!=2}display:none;{/if}">
							<label class="layui-form-label" style="width:130px">应用SDK AppID</label>
							<div class="layui-input-inline" style="width:300px">
								<input type="text" name="info[sdkappid]" value="{$info['sdkappid']}" class="layui-input"/>
								{if $info['sdkappid']}<div style="position: absolute;left: 0;top: 0;right: 0;bottom: 0; background: #fff;padding: .35rem .7rem;border: 1px solid rgba(0, 0, 0, .15);border-radius: .15rem;color: #636c72;" onclick="$(this).hide()">已隐藏内容，点击查看或编辑</div>{/if}
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">短信签名</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[sign_name]" value="{$info.sign_name}"/>
							</div>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px;"></div>
						</div>
						
						短信模板设置
						<hr>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">短信验证码</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_smscode]" value="{$info.tmpl_smscode}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_smscode_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_smscode_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：您的验证码：${code}，该验证码5分钟内有效，请勿泄漏于他人！</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：您的验证码：{1}，该验证码5分钟内有效，请勿泄漏于他人！</div>
						</div>
						<!-- <div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">订单提交成功</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_orderconfirm]" value="{$info.tmpl_orderconfirm}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_orderconfirm_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_orderconfirm_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px;"></div>
						</div> -->
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">订单支付成功</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_orderpay]" value="{$info.tmpl_orderpay}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_orderpay_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_orderpay_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您订单支付成功，订单号：${ordernum}，我们会尽快为您准备发货。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：恭喜您订单支付成功，订单号：{1}，我们会尽快为您准备发货。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">订单发货通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_orderfahuo]" value="{$info.tmpl_orderfahuo}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_orderfahuo_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_orderfahuo_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：您的订单${ordernum}已发货，快递公司：${express_com}，快递单号：${express_no}，请留意查收。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：您的订单{1}已发货，快递公司：{2}，快递单号：{3}，请留意查收。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">拼团成功通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_collagesuccess]" value="{$info.tmpl_collagesuccess}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_collagesuccess_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_collagesuccess_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您的订单${ordernum}拼团成功，我们会尽快为您准备发货。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：恭喜您的订单{1}拼团成功，我们会尽快为您准备发货。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">退款成功通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_tuisuccess]" value="{$info.tmpl_tuisuccess}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_tuisuccess_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_tuisuccess_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：您的订单${ordernum}退款成功，退款金额：${money}元，请留意查收。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：您的订单{1}退款成功，退款金额：{2}元，请留意查收。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">退款驳回通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_tuierror]" value="{$info.tmpl_tuierror}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_tuierror_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_tuierror_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：抱歉您的订单${ordernum}退款申请失败，原因：${reason}。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：抱歉您的订单{1}退款申请失败，原因：{2}。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">提现成功通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_tixiansuccess]" value="{$info.tmpl_tixiansuccess}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_tixiansuccess_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_tixiansuccess_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您提现成功，打款金额：${money}，请留意查收。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：恭喜您提现成功，打款金额：{1}，请留意查收。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">提现失败通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_tixianerror]" value="{$info.tmpl_tixianerror}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_tixianerror_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_tixianerror_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：抱歉您的提现申请失败，原因：${reason}。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：抱歉您的提现申请失败，原因：{1}。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">分销成功提醒</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_fenxiaosuccess]" value="{$info.tmpl_fenxiaosuccess}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_fenxiaosuccess_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_fenxiaosuccess_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您成功获得佣金：${money}元，请留意查收。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：恭喜您成功获得佣金：{1}元，请留意查收。</div>
						</div>
						{if getcustom('plug_zhangyuan')}
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">审核通过通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_checksuccess]" value="{$info.tmpl_checksuccess}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_checksuccess_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_checksuccess_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您的注册审核已通过。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您的注册审核已通过。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">审核驳回通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_checkerror]" value="{$info.tmpl_checkerror}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_checkerror_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_checkerror_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：抱歉您的注册审核未通过，驳回原因${reason}。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：抱歉您的注册审核未通过，驳回原因{1}。</div>
						</div>
						{/if}
						{if $auth_data=='all' || in_array('Restaurant/*',$auth_data)}
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">餐饮预定成功提醒</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_restaurant_booking]" value="{$info.tmpl_restaurant_booking}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_restaurant_booking_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_restaurant_booking_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您预定成功，餐厅名称：${restaurant_name}，订位信息：${table}，预定时间：${time_range}，请准时到达。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：恭喜您预定成功，餐厅名称：{1}，订位信息：{2}，预定时间：{3}，请准时到达。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">餐饮预定失败提醒</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_restaurant_booking_fail]" value="{$info.tmpl_restaurant_booking_fail}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_restaurant_booking_fail_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_restaurant_booking_fail_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：抱歉您的预定失败，餐厅名称：${restaurant_name}，请重新预定。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：抱歉您的预定失败，餐厅名称：{1}，请重新预定。</div>
						</div>
						{/if}

						{if getcustom('yuyue_sms')}
							<div class="layui-form-item">
								<label class="layui-form-label" style="width:130px">预约成功通知</label>
								<div class="layui-input-inline" style="width:300px">
									<input class="layui-input" name="info[tmpl_yysucess]" value="{$info.tmpl_yysucess}"/>
								</div>
								<div class="layui-input-inline" style="width:100px">
									<input type="checkbox" name="info[tmpl_yysucess_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_yysucess_st==1}checked{/if}>
								</div>
								<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您预定的${name}，已为您准备好，预定时间：${time}，敬请准时赴约。</div>
								<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板ID</span> 模板内容示例：恭喜您预定的{1}，已为您准备好，预定时间：{2}，敬请准时赴约。</div>

							
						
							</div>
						{/if}
						{if getcustom('zhaopin')}
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">充值成功通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_recharge]" value="{$info.tmpl_recharge}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_recharge_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_recharge_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：会员充值成功，请登录查看。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：会员充值成功，请登录查看。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">审核通过通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_checksuccess]" value="{$info.tmpl_checksuccess}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_checksuccess_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_checksuccess_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您的注册审核已通过。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：恭喜您的注册审核已通过。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">审核驳回通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_checkerror]" value="{$info.tmpl_checkerror}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_checkerror_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_checkerror_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：抱歉您的注册审核未通过，驳回原因${reason}。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：抱歉您的注册审核未通过，驳回原因{1}。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">待审核通知</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_checknotice]" value="{$info.tmpl_checknotice}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_checknotice_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_checknotice_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：您有一条新的审核信息，请登录查看。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：您有一条新的审核信息，请登录查看。</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px">新私信提醒</label>
							<div class="layui-input-inline" style="width:300px">
								<input class="layui-input" name="info[tmpl_sysmsg_notice]" value="{$info.tmpl_sysmsg_notice}"/>
							</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="checkbox" name="info[tmpl_sysmsg_notice_st]" value="1" lay-skin="switch" lay-text="开启|关闭" {if $info.tmpl_sysmsg_notice_st==1}checked{/if}>
							</div>
							<div class="layui-form-mid layui-word-aux smstip1" style="margin-left:10px;{if $info['smstype']!=1}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：您有一条来自于新的私信未读，请登录查看。</div>
							<div class="layui-form-mid layui-word-aux smstip2" style="margin-left:10px;{if $info['smstype']!=2}display:none{/if}"><span style="color:#666">请填写模板编号</span> 模板内容示例：您有一条来自于新的私信未读，请登录查看。</div>
						</div>
						{/if}
						<div class="layui-form-item">
							<label class="layui-form-label" style="width:130px"></label>
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="setmypass">确认修改</button>
							</div>
						</div>
					</div>
        </div>
      </div>
    </div>
  </div>
	{include file="public/js"/}
	<script>
	layui.form.on('select(smstypeset)', function(data){
		if(data.value==1){
			$('#keyid').html('AccessKey ID');
			$('#secretid').html('AccessKey Secret');
			$('#sdkappiddiv').hide();
			$('.smstip1').show();
			$('.smstip2').hide();
		}else{
			$('#keyid').html('SecretId');
			$('#secretid').html('SecretKey');
			$('#sdkappiddiv').show();
			$('.smstip1').hide();
			$('.smstip2').show();
		}
	})
	layui.form.on('submit(setmypass)', function(obj){
		var field = obj.field
		if(!field['info[tmpl_smscode_st]']) field['info[tmpl_smscode_st]'] = 0;
		if(!field['info[tmpl_orderconfirm_st]']) field['info[tmpl_orderconfirm_st]'] = 0;
		if(!field['info[tmpl_orderpay_st]']) field['info[tmpl_orderpay_st]'] = 0;
		if(!field['info[tmpl_collagesuccess_st]']) field['info[tmpl_collagesuccess_st]'] = 0;
		if(!field['info[tmpl_orderfahuo_st]']) field['info[tmpl_orderfahuo_st]'] = 0;
		if(!field['info[tmpl_tuisuccess_st]']) field['info[tmpl_tuisuccess_st]'] = 0;
		if(!field['info[tmpl_tuierror_st]']) field['info[tmpl_tuierror_st]'] = 0;
		if(!field['info[tmpl_tixiansuccess_st]']) field['info[tmpl_tixiansuccess_st]'] = 0;
		if(!field['info[tmpl_tixianerror_st]']) field['info[tmpl_tixianerror_st]'] = 0;
		if(!field['info[tmpl_fenxiaosuccess_st]']) field['info[tmpl_fenxiaosuccess_st]'] = 0;
		if(!field['info[tmpl_checksuccess_st]']) field['info[tmpl_checksuccess_st]'] = 0;
		if(!field['info[tmpl_checkerror_st]']) field['info[tmpl_checkerror_st]'] = 0;
		if(!field['info[tmpl_restaurant_booking_st]']) field['info[tmpl_restaurant_booking_st]'] = 0;
		if(!field['info[tmpl_restaurant_booking_fail_st]']) field['info[tmpl_restaurant_booking_fail_st]'] = 0;
		if(!field['info[tmpl_recharge_st]']) field['info[tmpl_recharge_st]'] = 0;
		if(!field['info[tmpl_sysmsg_notice_st]']) field['info[tmpl_sysmsg_notice_st]'] = 0;
		if(!field['info[tmpl_checknotice_st]']) field['info[tmpl_checknotice_st]'] = 0;
		$.post('',obj.field,function(data){
			dialog(data.msg,data.status,true);
		})
	})
  </script>
	{include file="public/copyright"/}
</body>
</html>